Мирослав Николић [Sun, 26 Sep 2021 05:33:02 +0000 (05:33 +0000)]
Update Serbian translation
(cherry picked from commit
ea633095121e80c6a692ed474beff4dffa57fc2f)
Rafael Fontenelle [Sat, 25 Sep 2021 13:57:40 +0000 (13:57 +0000)]
Update Brazilian Portuguese translation
(cherry picked from commit
df0f886e77edc7062aab2d41b2abeb96d9792558)
Danial Behzadi [Sat, 25 Sep 2021 10:25:05 +0000 (10:25 +0000)]
Update Persian translation
Matthias Clasen [Fri, 24 Sep 2021 22:03:13 +0000 (22:03 +0000)]
Merge branch 'ebassi/rst-man' into 'master'
Switch man pages to reStructuredFormat
See merge request GNOME/gtk!3995
Benjamin Otte [Fri, 24 Sep 2021 21:46:20 +0000 (21:46 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
win32: Fix GTK warnings
See merge request GNOME/gtk!3998
Benjamin Otte [Fri, 24 Sep 2021 21:18:15 +0000 (23:18 +0200)]
win32: Fix GTK warnings
Benjamin Otte [Fri, 24 Sep 2021 21:16:55 +0000 (21:16 +0000)]
Merge branch 'wip/otte/gdk-headers' into 'master'
Clean up GDK headers
See merge request GNOME/gtk!3996
Benjamin Otte [Fri, 24 Sep 2021 19:11:00 +0000 (21:11 +0200)]
gdk: Remove gdkinternals.h
Benjamin Otte [Fri, 24 Sep 2021 19:49:38 +0000 (21:49 +0200)]
wayland: Don't include gdkinternals.h
Benjamin Otte [Fri, 24 Sep 2021 19:22:12 +0000 (21:22 +0200)]
win32: Fix gcc warnings
Benjamin Otte [Fri, 24 Sep 2021 19:20:15 +0000 (21:20 +0200)]
x11: Don't include gdkinternals.h
Benjamin Otte [Fri, 24 Sep 2021 19:04:47 +0000 (21:04 +0200)]
macos: Don't include gdkinternals.h
Benjamin Otte [Fri, 24 Sep 2021 19:01:13 +0000 (21:01 +0200)]
win32: Don't include gdkinternals.h
Benjamin Otte [Fri, 24 Sep 2021 18:54:31 +0000 (20:54 +0200)]
broadway: Don't include gdkinternals.h
Benjamin Otte [Fri, 24 Sep 2021 18:35:48 +0000 (20:35 +0200)]
gdk: Don't include gdkinternals.h in gdk-private.h
Benjamin Otte [Fri, 24 Sep 2021 18:16:16 +0000 (20:16 +0200)]
gdk: Remove gdk.h include form gdkframeclockidle.c
Benjamin Otte [Fri, 24 Sep 2021 18:15:29 +0000 (20:15 +0200)]
gdk: Remove gdk.h include from header
Benjamin Otte [Fri, 24 Sep 2021 18:14:16 +0000 (20:14 +0200)]
gdk: Remove gdk.h include from gdk-private.h
Benjamin Otte [Fri, 24 Sep 2021 20:11:22 +0000 (22:11 +0200)]
macos: Actually set the vfuncs
Emmanuele Bassi [Fri, 24 Sep 2021 18:00:09 +0000 (19:00 +0100)]
ci: Update the Docker image to use
Yuri Chornoivan [Fri, 24 Sep 2021 17:06:11 +0000 (17:06 +0000)]
Update Ukrainian translation
(cherry picked from commit
3a0d4d3d13e02bec2cb7e84919bfc5498639af9b)
Emmanuele Bassi [Fri, 24 Sep 2021 17:04:09 +0000 (18:04 +0100)]
ci: Add Python's docutils to the base image
We use rst2man for generating our man pages.
Emmanuele Bassi [Fri, 24 Sep 2021 17:00:08 +0000 (18:00 +0100)]
docs: Remove the last remaining XML files
Emmanuele Bassi [Fri, 24 Sep 2021 16:54:41 +0000 (17:54 +0100)]
Switch man pages to reStructuredFormat
It's easier to write than DocBook, and rst2man is faster than xsltproc.
Matthias Clasen [Fri, 24 Sep 2021 15:37:24 +0000 (15:37 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
headerbar: Cosmetics
See merge request GNOME/gtk!3994
Marek Černocký [Fri, 24 Sep 2021 13:24:12 +0000 (15:24 +0200)]
Updated Czech translation
Matthias Clasen [Fri, 24 Sep 2021 12:54:04 +0000 (08:54 -0400)]
headerbar: Cosmetics
Use the box api we have.
Matthias Clasen [Fri, 24 Sep 2021 12:36:30 +0000 (12:36 +0000)]
Merge branch 'wip/chergert/undo-fixes' into 'master'
texthistory: add barriers after final grouping
Closes #4276
See merge request GNOME/gtk!3989
Benjamin Otte [Fri, 24 Sep 2021 08:50:17 +0000 (08:50 +0000)]
Merge branch 'wip/otte/shittymorph' into 'master'
gdk: Make sure only one GL backend is used
See merge request GNOME/gtk!3992
Benjamin Otte [Thu, 23 Sep 2021 23:47:03 +0000 (01:47 +0200)]
gdk: Make sure only one GL backend is used
Creative people managed to create an X11 display and a Wayland display
at once, thereby getting EGL and GLX involved in a fight to the death
over the ownership of the glFoo() symbolspace.
A way to force such a fight with available tools here is (on Wayland)
running something like:
GTK_INSPECTOR_DISPLAY=:1 GTK_DEBUG=interactive gtk4-demo
Related: xdg-desktop-portal-gnome#5
Christian Hergert [Thu, 23 Sep 2021 02:41:06 +0000 (19:41 -0700)]
textview: improve undo grouping when overwriting
We want to group in more than one undo group when removing a selection
and replacing it with a new character or characters, unless we're
replacing a single character. In that case, the natural thing is to treat
it as an atomic change.
Christian Hergert [Thu, 23 Sep 2021 00:08:02 +0000 (17:08 -0700)]
texthistory: add barriers after final grouping
We don't want to allow new items to be grouped into a previous action
group after the end_user_action() is called. This ensures that we add a
barrier action in those conditions.
Fixes #4276
Matthias Clasen [Wed, 22 Sep 2021 23:03:18 +0000 (23:03 +0000)]
Merge branch 'master' into 'master'
gtktextview: Fixed arrow key crash.
Closes #4275
See merge request GNOME/gtk!3984
Matthias Clasen [Wed, 22 Sep 2021 21:49:15 +0000 (21:49 +0000)]
Merge branch 'widgetfactory-async-load' into 'master'
Revert "Use GtkLoader for image loading"
See merge request GNOME/gtk!3986
Matthias Clasen [Wed, 22 Sep 2021 03:04:33 +0000 (23:04 -0400)]
Add GtkLoader to gtk4-widget-factory
Add an async-loading paintable implementation
to gtk4-widget-factory, and use it to load the
jpegs in the background.
Matthias Clasen [Wed, 22 Sep 2021 03:08:09 +0000 (23:08 -0400)]
texture: Document constructors as threadsafe
We aren't providing async loading apis here,
but we want to allow applications to create
textures in a thread, to avoid blocking the
main thread.
Matthias Clasen [Wed, 22 Sep 2021 03:09:40 +0000 (23:09 -0400)]
Revert "Add delayed loading for textures"
This reverts commit
4a89cfe2c938512c4580d3697cc08a64e41f5f36.
Matthias Clasen [Wed, 22 Sep 2021 03:09:31 +0000 (23:09 -0400)]
Revert "Use GtkLoader for image loading"
This reverts commit
da115ad07504d2f10dec93c37d98e1d6fd4b095d.
Matthias Clasen [Tue, 21 Sep 2021 17:37:06 +0000 (17:37 +0000)]
Merge branch 'composetable/accept-long-replacements' into 'master'
gtkcomposetable: Accept long replacement strings
Closes #4273
See merge request GNOME/gtk!3983
Jordan Yelloz [Tue, 21 Sep 2021 15:47:32 +0000 (08:47 -0700)]
gtktextview: Fixed arrow key crash.
When pressing the keyboard arrows to move around when the insertion point is
hidden, it causes an assertion error in blink_cb.
Insertion point blinks should only be scheduled when blinking is enabled and the
insertion point is visible.
Closes #4275
Martin Kühl [Tue, 21 Sep 2021 14:56:47 +0000 (16:56 +0200)]
gtkcomposetable: Accept long replacement strings
This change removes the assertions limiting replacement strings in the compose table to be less than 20 characters.
The limit seems arbitrary, is not required, will break some users' setups, and problems with it result in applications not launching.
Fixes #4273
Benjamin Otte [Tue, 21 Sep 2021 03:08:46 +0000 (03:08 +0000)]
Merge branch 'wip/otte/titlebar' into 'master'
window: Add a titlebar property
See merge request GNOME/gtk!3982
Benjamin Otte [Mon, 20 Sep 2021 22:59:36 +0000 (00:59 +0200)]
reftests: Add tests that check default-size is computed correctly
Related: #4136
Benjamin Otte [Tue, 21 Sep 2021 02:33:52 +0000 (04:33 +0200)]
window: Add a titlebar property
It just turns get/set_titlebar into a property.
Benjamin Otte [Tue, 21 Sep 2021 01:48:42 +0000 (03:48 +0200)]
window: Make priv->titlebar the titlebar
It was priv->title_box before - unless priv->titlebar wasn't NULL, then
it was NULL.
Confusing? Yeah, that's why I changed it.
Benjamin Otte [Tue, 21 Sep 2021 01:39:19 +0000 (03:39 +0200)]
window: Improve set_titlebar() function
Get rid of a goto and check if the titlebar is already set.
Matthias Clasen [Mon, 20 Sep 2021 12:15:44 +0000 (12:15 +0000)]
Merge branch 'mention_a11y_concern' into 'master'
Mention that after setting a button child the user is responsible for a11y relations
See merge request GNOME/gtk!3981
Lukáš Tyrychtr [Mon, 20 Sep 2021 08:52:16 +0000 (10:52 +0200)]
Mention that after setting a button child the user is responsible for a11y relations
Benjamin Otte [Mon, 20 Sep 2021 05:38:27 +0000 (05:38 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
cssprovider: Be clearer about warnings vs errors
See merge request GNOME/gtk!3980
Benjamin Otte [Mon, 20 Sep 2021 05:04:20 +0000 (07:04 +0200)]
wayland: Add format hex value to debug print
It's how it's listed in the spec, this makes it easier to search.
Matthias Clasen [Mon, 20 Sep 2021 04:29:54 +0000 (04:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
builder: Drop unused part of private api
See merge request GNOME/gtk!3979
Matthias Clasen [Mon, 20 Sep 2021 04:01:24 +0000 (00:01 -0400)]
window: Drop some dead code
The gtk_window_set_buildable_property implementation
was only used to set the unused builder_visible flag.
Remove both the flag and the vfunc.
This means we no longer have any set_buildable_property
implementations and could eventually drop that vfunc and
the support for it in GtkBuilder.
Benjamin Otte [Mon, 20 Sep 2021 03:57:14 +0000 (05:57 +0200)]
cssprovider: Be clearer about warnings vs errors
The CSS parser tried to warn about unexpected syntax that the spec
doesn't define as an error.
Matthias Clasen [Mon, 20 Sep 2021 03:54:38 +0000 (23:54 -0400)]
builder: Cosmetics
Matthias Clasen [Mon, 20 Sep 2021 02:30:34 +0000 (22:30 -0400)]
builder: Small optimization
Use g_object_setv where we can.
It would be much nicer if we could pass the
pspecs we already have, and avoid having GObject
look them up again.
Matthias Clasen [Mon, 20 Sep 2021 02:13:00 +0000 (22:13 -0400)]
builder: Avoid a pointless call
pspec->name is guaranteed to be interned already.
Matthias Clasen [Mon, 20 Sep 2021 01:56:43 +0000 (21:56 -0400)]
builder: Drop unused part of private api
The aliases arguments was used to support 'primary',
but we no longer have that, and all callers pass
NULL for aliases. So, just drop it.
Emin Tufan Çetin [Sun, 19 Sep 2021 17:22:22 +0000 (17:22 +0000)]
Update Turkish translation
Emin Tufan Çetin [Sun, 19 Sep 2021 17:18:57 +0000 (17:18 +0000)]
Update Turkish translation
Matthias Clasen [Sun, 19 Sep 2021 12:53:59 +0000 (12:53 +0000)]
Merge branch 'resource-cleanup' into 'master'
Clean up gesture icons
See merge request GNOME/gtk!3978
Matthias Clasen [Sun, 19 Sep 2021 12:26:14 +0000 (08:26 -0400)]
resources: Treat svgs as xml
They can have their whitespace removed just the same.
Matthias Clasen [Sun, 19 Sep 2021 12:13:46 +0000 (08:13 -0400)]
Clean up gesture icons
These had duplicate drawing in them, and were
saved with all the extra Inkscape data.
Matthias Clasen [Sat, 18 Sep 2021 23:02:00 +0000 (23:02 +0000)]
Merge branch 'delayed-loading' into 'master'
gtk-demo: Cosmetics
See merge request GNOME/gtk!3975
Matthias Clasen [Sat, 18 Sep 2021 18:13:22 +0000 (14:13 -0400)]
Use GtkLoader for image loading
This avoids blocking on image loading while
we have better things to do.
Matthias Clasen [Sat, 18 Sep 2021 17:25:47 +0000 (13:25 -0400)]
Add delayed loading for textures
Add a private GdkPaintable implementation that
loads a texture in a thread, and does not show
anything until the texture is loaded. This avoid
blocking on image loading in the main thread.
Matthias Clasen [Sat, 18 Sep 2021 18:12:39 +0000 (14:12 -0400)]
loaders: Add profiler marks
These are potentially expensive calls, we
should make sure they show up in profiles.
Jordi Mas [Sat, 18 Sep 2021 19:15:31 +0000 (21:15 +0200)]
Update Catalan translation
Matthias Clasen [Sat, 18 Sep 2021 16:04:40 +0000 (12:04 -0400)]
builder: Cosmetics
Matthias Clasen [Sat, 18 Sep 2021 15:07:09 +0000 (11:07 -0400)]
gtk-demo: Cosmetics
Tweak the color of the outlines in the font rendering
demo.
Matthias Clasen [Sat, 18 Sep 2021 15:04:09 +0000 (15:04 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'
label: Remove redundant store
Closes #4196
See merge request GNOME/gtk!3891
Timm Bäder [Sat, 18 Sep 2021 14:48:48 +0000 (16:48 +0200)]
widget factory: Scale down jpeg images
Piotr Drąg [Sat, 18 Sep 2021 11:12:42 +0000 (13:12 +0200)]
Update POTFILES.in
Timm Bäder [Sat, 18 Sep 2021 11:08:46 +0000 (13:08 +0200)]
cssimageurl: Explicitly check for local_error != NULL
This should always be the case since gdk_texture_new_from_file should
always set the error when it returns NULL, but make it explicit anyway.
Timm Bäder [Sat, 18 Sep 2021 10:53:41 +0000 (12:53 +0200)]
constraintsolver: Remove a dead assignment
Timm Bäder [Sat, 18 Sep 2021 07:00:16 +0000 (09:00 +0200)]
gdktiff: Use guint32 instead of int32
The latter seems to be deprecated.
Matthias Clasen [Sat, 18 Sep 2021 06:35:08 +0000 (06:35 +0000)]
Merge branch 'transform-work' into 'master'
transform: Add sections
See merge request GNOME/gtk!3974
Timm Bäder [Sat, 11 Sep 2021 11:32:33 +0000 (13:32 +0200)]
window: Fix mnemonics-visible getter+setter annotations
Timm Bäder [Fri, 27 Aug 2021 14:37:37 +0000 (16:37 +0200)]
stackswitcher: Expand child buttons
Fixes #4196
Timm Bäder [Sat, 7 Aug 2021 09:58:46 +0000 (11:58 +0200)]
inspector: Cache if we have ever constructed a window
Silly optimization to get rid of
gtk_main_do_event
gtk_inspector_handle_event
gtk_inspector_window_get_for_display
g_object_get_data
showing up in profiles even though it's useless since we've never even
created any inspector window in the first place.
Matthias Clasen [Sat, 18 Sep 2021 06:06:00 +0000 (02:06 -0400)]
Add gsk_transform_to_2d_components
This function decomposes a general 2D transform
into skew, scale, rotation and translation.
Tests included.
Matthias Clasen [Sat, 18 Sep 2021 03:59:52 +0000 (03:59 +0000)]
Merge branch 'gbsneto/fix-filechooserwidget-choices' into 'master'
File chooser choice fixes
See merge request GNOME/gtk!3973
Georges Basile Stavracas Neto [Sat, 18 Sep 2021 03:17:36 +0000 (00:17 -0300)]
filechooserwidget: Return an id in get_choice()
gtk_file_chooser_widget_get_choice() is supposed to return the option
id of the choice, but it currently is returning the option label.
Return the option id instead.
Georges Basile Stavracas Neto [Sat, 18 Sep 2021 03:14:55 +0000 (00:14 -0300)]
filechooserwidget: Match choice id from "options"
When choices are added to the file chooser widget, the options of
that choice are stored object data under the "options" key. However,
gtk_file_chooser_widget_set_choice() was checking for "choices".
Retrieve the options from the "options" key stored data object data.
Matthias Clasen [Sat, 18 Sep 2021 02:37:08 +0000 (22:37 -0400)]
Add more transform tests
Test gsk_transform_to_2d.
Matthias Clasen [Sat, 18 Sep 2021 02:22:21 +0000 (02:22 +0000)]
Merge branch 'static-analysis-fixes' into 'master'
label: Remove a dead assignment
See merge request GNOME/gtk!3972
Matthias Clasen [Sat, 18 Sep 2021 02:01:55 +0000 (22:01 -0400)]
gsk: Add skew transforms
Add gsk_transform_skew() to make our transform
api more complete wrt to what you would expect
for a graphics api.
Matthias Clasen [Sat, 18 Sep 2021 00:51:47 +0000 (20:51 -0400)]
transform: Add sections
This makes the code easier to navigate (for me).
Matthias Clasen [Sat, 18 Sep 2021 02:05:22 +0000 (22:05 -0400)]
textview: Remove a dead store
Pointed out by clang.
Matthias Clasen [Sat, 18 Sep 2021 02:03:56 +0000 (22:03 -0400)]
listitemmanager: Add a few assertions
This might help poor static analyzers.
Matthias Clasen [Sat, 18 Sep 2021 00:26:14 +0000 (00:26 +0000)]
Merge branch 'more-glyph-drawing-fixes' into 'master'
ngl: Use exact device scales for glyphs
See merge request GNOME/gtk!3971
Matthias Clasen [Sat, 18 Sep 2021 00:02:12 +0000 (20:02 -0400)]
imcontextsimple: Rewrite a function slightly
This hopefully avoids upsetting static analyis.
Matthias Clasen [Fri, 17 Sep 2021 23:53:00 +0000 (19:53 -0400)]
label: Remove a dead assignment
It may have quieted gcc at some point, but
it upsets clang nowadays. Remove it.
Matthias Clasen [Fri, 17 Sep 2021 23:31:41 +0000 (23:31 +0000)]
Merge branch 'glyph-clipping-fixes' into 'master'
gtk-demo: Improve ink extents rendering
See merge request GNOME/gtk!3969
Matthias Clasen [Fri, 17 Sep 2021 23:11:06 +0000 (19:11 -0400)]
Revert "gsk: Stop enlarging text bounding boxes"
This reverts commit
87af45403ace1047b91ddbab98d9d5a5e15b84eb.
I've found that this change is needed to ensure that the
bounding boxes of text nodes encompass all the glyphd drawing.
Without it, we overdraw the widget boundaries and cut off
glyphs.
Matthias Clasen [Fri, 17 Sep 2021 23:07:55 +0000 (19:07 -0400)]
ngl: Use exact device scales for glyphs
We are rendering the glyphs on a larger surface,
and we should avoid introducing unnecessary
rounding errors here. Also, I've found that
we always need to enlarge the surface by one
pixels in each direction to avoid cutting off
the tops of large glyphs.
Matthias Clasen [Fri, 17 Sep 2021 20:07:51 +0000 (16:07 -0400)]
gtk-demo: Improve ink extents rendering
Show the pixel-aligned ink rectangle, so we can
see that it includes all the pixels that are inked.
Matthias Clasen [Fri, 17 Sep 2021 19:24:26 +0000 (15:24 -0400)]
gtk-demo: Fix non-circular buttons
Matthias Clasen [Fri, 17 Sep 2021 18:35:41 +0000 (18:35 +0000)]
Merge branch 'glyph-clipping-fixes' into 'master'
gsk: Stop enlarging text bounding boxes
See merge request GNOME/gtk!3968
Matthias Clasen [Fri, 17 Sep 2021 18:06:30 +0000 (18:06 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
icontheme: Fix variable mixup leading to crashes
Closes #4269
See merge request GNOME/gtk!3967
Benjamin Otte [Fri, 17 Sep 2021 16:51:59 +0000 (18:51 +0200)]
icontheme: Fix variable mixup leading to crashes
Note: Don't have 2 variables named "icon" and "gicon", you will screw
them up.
reftests included.
Fixes #4269